<include file="__THEME__/public_header" />

<div id="page-wrap">
    <div id="main-wrap">
    	<div id="st-index-grid" class="st-grid">
        	<!--左边 -->
            <include file="__THEME__/public_left" />
            <div id="col8" class="st-section boxShadow content-bg">
            	<include file="__THEME__/public_right" />
                <div id="col5" class="st-index-main">
                <div class="extend-foot">
				<!--tab menu-->
                <div class="feed-nav">
				    <div class="my-feed-title">
                        <h4>我的收藏(共<span id="follow_count" event-node="favorite_count" event-args="uid={$mid}">{$favoriteCount|default=0}</span>条)</h4>
                    </div>
                </div>
				<!--feed list-->
				<div class="feed_lists" >
				<neq name='data' value=''>
					<volist name='data' id ='vl'>
						<dl class="feed_list" id ='feed{$vl.source_id}'  model-node='coll_list' >
						<dt class="face">
						<a href="{$vl['source_user_info']['space_url']}"><img src="{$vl['source_user_info']['avatar_small']}"></a></dt>
						<dd class="content">
							<p class="hd"><space uid="vl.source_user_info.uid">{uname}</space></p>
							<p>
								<neq name="vl.is_del" value="1"><neq name='vl.source_content' value=''>{$vl.source_data.body|format=true}</neq></neq>
								<eq name="vl.is_del" value="1"><span style="color:red;">（提示：原微博已被删除，你可以取消收藏）</span></eq></p>
							<p class="info">
							<span class="right">{:W('Collection',array('type'=>'collection','sid'=>$vl['source_id'],'stable'=>$vl['source_table_name'],'sapp'=>$vl['source_app']))}

							<i class="vline">|</i>
							<php>if($vl['is_del'] == 1):</php>
							<a href="javascript:;" style="color:gray;cursor:default;">{:L('PUBLIC_VIEW')}</a>
							<php>else:</php>
							<a href="{$vl.source_url}" target="_blank">{:L('PUBLIC_VIEW')}</a>
							<php>endif;</php>

							<php>if(in_array('repost',$weibo_premission) || $vl['source_table_name'] !='feed'):</php>

							<php>if(CheckPermission('core_normal','feed_share')){</php>
								<i class="vline">|</i>
								<php>if($vl['is_del'] == 1):</php>
								<a href="javascript:;" style="color:gray;cursor:default;">转发</a>
								<php>else:</php>
								<php>if($vl['is_repost'] == '1'):</php>
								{:W('Share',array('sid'=>$vl['app_row_id'],'current_id'=>$vl['source_id'],'stable'=>$vl['app_row_table'],'current_table'=>$vl['source_table_name'],'initHTML'=>'','appname'=>$vl['source_app'],'is_repost'=>$vl['is_repost']))}
								<php>else:</php>
								{:W('Share',array('sid'=>$vl['source_id'],'stable'=>$vl['source_table_name'],'initHTML'=>'','appname'=>$vl['source_app'],'is_repost'=>$vl['is_repost']))}
								<php>endif;</php>
								<php>endif;</php>
							<php>}</php>
							<php>endif;</php>
							
							<php>if(in_array('comment',$weibo_premission) || $vl['source_table_name'] !='feed'):</php>
							<eq name='vl.actions.comment' value='true'>
								<i class="vline">|</i>
								<a event-node="comment" href="javascript:void(0)" event-args='row_id={$vl.feed_id}&app_uid={$vl.uid}&app_row_id={$vl.app_row_id}&to_comment_id=0&to_uid=0&app={$vl.source_app}&table={$vl.source_table_name}'>{:L('PUBLIC_STREAM_COMMENT')}
								 <neq name='vl.comment_count' value='0'>({$vl.comment_count})</neq></a>
							</eq>
							<php>endif;</php></span>

							<php>if($vl['is_del'] == 1):</php>
							<a class="date" href="javascript:;" style="color:gray;cursor:default;">{$vl.publish_time|friendlyDate}</a></p>
							<php>else:</php>
							<a class="date" href="{$vl.source_url}">{$vl.publish_time|friendlyDate}</a></p>
							<php>endif;</php>
							<div model-node="comment_detail" class="repeat clearfix" style="display:none;"></div>
						</dd>
						</dl>
					</volist>
					<else />
					<div class="loading">{:L('PUBLIC_FAVORITE_ISNOT')}</div>
					</neq>
					<neq name='html' value=''>
					<div id="page" class="page">
						{$html}
					</div>
					</neq>
					</div>
                </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="__THEME__/js/module.weibo.js"></script>
<include file="__THEME__/public_footer" />